home *** CD-ROM | disk | FTP | other *** search
/ Network Supervisor's Toolkit / Network Supervisor's Toolkit.iso / printers / prfix2 / prfix.doc < prev   
Text File  |  1996-07-10  |  3KB  |  60 lines

  1.             Documentation Courtesy of
  2.               Jacobsen Consulting,
  3.                Fort St. John, B.C.
  4. PRFIX
  5.  
  6. This information will help you correct some possible problems
  7. with using spooled printers from a NOVELL file server.
  8.  
  9. The problem occurs when printing to a printer from the server
  10. using BASIC, or a compiled BASIC program, or a program
  11. compiled in one of several other languages.   From DOS, you
  12. may be able to copy to a file, but the error occurs only
  13. from within the program.
  14.  
  15. Up to three parallel printers can be supported under DOS and
  16. NOVELL.   The port addresses used by DOS are located at 
  17. memory locations 408-40F.   Each address is two bytes long,
  18. so as you can see, there really is room for 4 printers,
  19. but only 3 are supported.   If you want to use 3 printers,
  20. one of the printer ports must be on a monochrome card.
  21.  
  22. PRINTER     LOCATION      ADDRESS        ADDRESS
  23.             OF PORT       WITH           W/O
  24.             ADDRESS       MONO CARD      MONO CARD
  25.  
  26. LPT1:       0000:0408      3BC           378
  27. LPT2:       0000:040A      378           278
  28. LPT3:       0000:040C      278           N/A
  29.  
  30.  
  31. This problem may ALSO occur if trying to print to a non-spooled
  32. printer on the server that has some of the printers spooled.
  33. I've noticed that NOVELL and DOS number the printers differently.
  34. In this case, you may have to use DEBUG to modify the address
  35. sent to a given port to solve your particular problem.   In a
  36. recent test on a computer with 3 printers, DOS and NOVELL swapped
  37. LPT1: and LPT2:  (One adds from right to left, the other from
  38. left to right)   If you are using only spooled printers, then
  39. the address entered into those locations don't really matter,
  40. as long as they are non-zero.  (Ala the original PRFIX)
  41.  
  42. The following three programs will fix up either printer port
  43. 1, 2 or 3.   The old PRFIX.COM file only fixed printer port 1.
  44. The assembly language listings are shown below in case you have
  45. to modify the addresses, or combine all three into one program.
  46.  
  47.   LPT1:                   LPT2:                  LPT3:
  48.   PR1FIX                  PR2FIX                 PR3FIX
  49.  
  50. PUSH   DS               PUSH   DS              PUSH   DS         
  51. MOV    AX,0000          MOV    AX,0000         MOV    AX,0000    
  52. MOV    DS,AX            MOV    DS,AX           MOV    DS,AX      
  53. MOV    BL,BC            MOV    BL,78           MOV    BL,78      
  54. MOV    [0408],BL        MOV    [040A],BL       MOV    [040C],BL  
  55. MOV    BL,03            MOV    BL,03           MOV    BL,02      
  56. MOV    [0409],BL        MOV    [040B],BL       MOV    [040D],BL  
  57. POP    DS               POP    DS              POP    DS         
  58. INT    20               INT    20              INT    20         
  59.  
  60.